#include <iostream>
using namespace std;

void swap(int &x, int &y, int &z)
{
	//...
	if(x < y){
		int tmp = x;
		x = y;
		y = tmp;
	}

	if(x < z){
		int tmp = x;
		x = z;
		z = tmp;
	}

	if(y < z){
		int tmp = y;
		y = z;
		z = tmp;
	}
}

int main(void)
{
	int x = 5, y = 3, z = 4;
	swap(x, y, z);
	//输出
	cout << x << " > " << y << " > " << z << endl; 
}
